<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="common.jsp"></jsp:include>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>自动表格</title>

<%
	String str  = pageContext.getServletContext().getContextPath() ;
%>
</head>
<body>
  <table class="layui-table" lay-data="{height:315, url:'/demo/table/user/', page:true, id:'test'}" lay-filter="test">
    <thead>
      <tr>
	      <th lay-data="{field:'id', width:80, sort: true}">ID</th>
	      <th lay-data="{field:'username', width:80}">用户名</th>
	      <th lay-data="{field:'sex', width:80, sort: true}">性别</th>
	      <th lay-data="{field:'city'}">城市</th>
	      <th lay-data="{field:'sign'}">签名</th>
	      <th lay-data="{field:'experience', sort: true}">积分</th>
	      <th lay-data="{field:'score', sort: true}">评分</th>
	      <th lay-data="{field:'classify'}">职业</th>
          <th lay-data="{field:'wealth', sort: true}">财富</th>
      </tr>
    </thead>
  </table>
     out.println(<%=str %>);
</body>
</html>